#include "Window.h"
#include "ResourceManager.h"
Window::Window() :m_Window(nullptr)
{
	if (SDL_Init(SDL_INIT_VIDEO) != 0)
		SDL_Log("failed to init SDL!");

	m_Window = SDL_CreateWindow("VulkanRenderer", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, static_cast<int>(ResourceManager::m_WindowWidth), static_cast<int>(ResourceManager::m_WindowHeight), SDL_WINDOW_SHOWN | SDL_WINDOW_VULKAN);
	if (!m_Window)
		SDL_Log("failed to create SDL window!");
}

Window::~Window()
{
	SDL_DestroyWindow(m_Window);
}
